<?php

/**
 * Core
 * 
 * Returns the active controller through the factory.
 * 
 * @author Oliver Schwarz <oliver.schwarz@vaicon.de>
 * @package Core
 */
class Core
{

        public static function factory()
        {
                $r = Util::parseRequest();
                if (require APP_DIR . '/app/controller/' . $r->controller . '.class.php'):
                        $classname = ucfirst($r->controller);
                        return new $classname;
                endif;
        }

}

?>